<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head>
    <script type="text/javascript" src="/static/utils/scripts/flat-ui.js"></script>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <link rel="shortcut icon" href="/static/utils/image/favicon.ico" type="image/x-icon" />
    <meta charset="UTF-8">
    <title>学生信息管理系统</title>

    <!-- 标题图标、CSS、js、jQ
<link href="/online/image/favicon.ico" rel="shortcut icon">
<link rel="stylesheet" type="text/css" href="/online/css/main.css">
<script src="/online/js/fun.js" type="text/javascript"></script> -->
    <script type="text/javascript" src="/static/utils/js/jquery-3.3.1.min.js"></script>
    <!-- Loading Bootstrap -->
    <link href="/static/utils/css/vendor/bootstrap.min.css" rel="stylesheet">
    <!-- Loading Flat UI Pro -->
    <link href="/static/utils/css/flat-ui.css" rel="stylesheet">
    <!-- Loading Flat UI JS -->
    <script type="text/javascript" src="/static/utils/scripts/flat-ui.min.js"></script>

    <script type='text/javascript' src='/static/utils/scripts/particles.js'></script>
    <link href="/static/utils/css/animate.css" rel="stylesheet">
</head>




<body>
    <div id="particles-js"><canvas class="particles-js-canvas-el" width="1322" height="774" style="width: 100%; height: 100%;"></canvas></div>
    <div>
        <nav class="navbar navbar-inverse navbar-expand-lg" role="navigation">
            <a class="navbar-brand" href="/index?u=teacher">学生信息管理系统</a>
            <button type="button" class="navbar-toggler" data-toggle="collapse" data-target="#navbar-collapse-01"></button>
            <div class="collapse navbar-collapse" id="navbar-collapse-01">
                <ul class="nav navbar-nav mr-auto">
                    <li><a href="/addCourse"><strong>添加教学课程</strong></a>

                    <li><a th:href="@{'http://localhost:8080/manageCourse/' + ${sid}}"><strong>管理教学课程</strong></a>

                    <li><a th:href="@{'http://localhost:8080/show/' + ${sid}}"><strong>查看名单</strong></a>

                    <li><a th:href="@{'http://localhost:8080/myt/' + ${sid}}"><strong>管理本人信息</strong></a>

                </ul>
                <p class="navbar-text navbar-right" th:text="|你好! ${sname} 老师|"></p>
                <a href="/logout" class="navbar-link">注销</a>
            </div>
        </nav>
    </div>
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <h5>查看选课名单</h5>
                <div class="row">
                    <div class="col-md-12">
                        <div class="margin:0 15px" style="overflow-x: scroll;">
                            <table style="overflow:scroll;" class="table table-striped table-hover animated fadeIn">
                                <tr>
                                    <th>课程</th>
                                    <th>学号</th>
                                    <th>姓名</th>
                                    <th>性别</th>
                                    <th>年龄</th>
                                    <th>专业</th>
                                    <th>学院</th>

                                </tr>
                                    <tr th:each="student: ${students}">
                                        <td th:text="${student.cname}"></td>
                                        <td th:text="${student.sid}">${student.sid}</td>
                                        <td th:text="${student.sname}">${student.sname }</td>
                                        <td th:text="${student.gender}">${student.ssex}</td>
                                        <td th:text="${student.classroom}">${student.classr}</td>
                                        <td th:text="${student.major}">${student.profession}</td>
                                        <td th:text="${student.college}">${student.college}</td>


                                    </tr>

                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>




        <!-- 显示分页信息 -->
        <!--<div class="row">
            &lt;!&ndash;分页文字信息  &ndash;&gt;
            <div class="col-md-6">当前 ${pageInfo.pageNum }页,总${pageInfo.pages } 页,总 ${pageInfo.total } 条记录</div>
            &lt;!&ndash; 分页条信息 &ndash;&gt;
            <div class="col-md-6">
                <nav aria-label="Page navigation">
                    <ul class="pagination">
                        <li><a href="/StudentInfo/TeacherHandler/looksel/${requestScope.cid }/${requestScope.cname}/1">首页</a></li>
                        <c:if test="${pageInfo.hasPreviousPage }">
                            <li>
                                <a href="/StudentInfo/TeacherHandler/looksel/${requestScope.cid }/${requestScope.cname}/${pageInfo.pageNum-1}" aria-label="Previous"> <span aria-hidden="true">«</span>
                                </a>
                            </li>
                        </c:if>

                        <c:forEach items="${pageInfo.navigatepageNums }" var="page_Num">
                            <c:if test="${page_Num == pageInfo.pageNum }">
                                <li class="active"><a href="#">${page_Num }</a></li>
                            </c:if>
                            <c:if test="${page_Num != pageInfo.pageNum }">
                                <li><a href="/StudentInfo/TeacherHandler/looksel/${requestScope.cid }/${requestScope.cname}/${page_Num }">${page_Num }</a></li>
                            </c:if>

                        </c:forEach>
                        <c:if test="${pageInfo.hasNextPage }">
                            <li>
                                <a href="/StudentInfo/TeacherHandler/looksel/${requestScope.cid }/${requestScope.cname}/${pageInfo.pageNum+1 }" aria-label="Next"> <span aria-hidden="true">»</span>
                                </a>
                            </li>
                        </c:if>
                        <li><a href="/StudentInfo/TeacherHandler/looksel/${requestScope.cid }/${requestScope.cname}/${pageInfo.pages}">末页</a></li>
                    </ul>
                </nav>
            </div>
        </div>-->




    </div>

    <script type="text/javascript" src="/static/utils/scripts/flat-ui.js"></script>
    <script src="/static/utils/scripts/bganimation.js"></script>
</body>


</html>